'ui';

var a = {
  getText: function (id) {
    if (!id) {
      return
    }
    var text = ui[id].getText();
    toast(text)
  }
}
ui.layout(
  <vertical>
    <button id="ok" textSize="30sp">1111111111</button>
    <button text="大幅度发到付"></button>
    <text autoLink="web" text="百度: http://www.baidu.com " /><text autoLink="phone" text="电信电话: 10000"></text>
  </vertical>
);

a.getText('ok');